package com.google.code.twithis.core.persistence.dao;

import com.google.code.twithis.core.persistence.model.User;

public class LoginDao extends AbstractDao {

	protected long getPersistentObjectId() {
		return 0x75a00ca289238a9fL;
	}

	public void save(User user) {
		getPersistentObject().setContents(user);
		getPersistentObject().commit();
	}

	public User getUser() {
		Object object = getPersistentObject().getContents();
		if (object == null)
			return null;
		else
			return (User) object;
	}

}
